#ifndef _7SEG_H_
#define _7SEG_H_

/* Numeric output values */
#define SEG7_CLEAR          0xFF
#define SEG7_ZERO           0xC0
#define SEG7_ONE            0xF9
#define SEG7_TWO            0xA4
#define SEG7_THREE          0xB0
#define SEG7_FOUR           0x99
#define SEG7_FIVE           0x92
#define SEG7_SIX            0x82
#define SEG7_SEVEN          0xF8
#define SEG7_EIGHT          0x80
#define SEG7_NINE           0x90

/* Alphabetical character output values */
#define SEG7_A              0x88
#define SEG7_B              0x83
#define SEG7_C              0xC6
#define SEG7_D              0xA1
#define SEG7_E              0x86
#define SEG7_F              0x8E
#define SEG7_G              0x90
#define SEG7_H              0x8B
#define SEG7_I              0xF9
#define SEG7_J              0xF1
#define SEG7_K              0x89
#define SEG7_L              0xC7
#define SEG7_M              0xAA
#define SEG7_N              0xAB
#define SEG7_O              0xC0
#define SEG7_P              0x8C
#define SEG7_Q              0x98
#define SEG7_R              0xAF
#define SEG7_S              0x92
#define SEG7_T              0x87
#define SEG7_U              0xE3
#define SEG7_V              0xC1
#define SEG7_W              0x95
#define SEG7_X              0xD6
#define SEG7_Y              0x91
#define SEG7_Z              0xA4

/* Clears the 7 segment display */
void Clear7Seg(void);

/* Reads a string containing alpha-numeric characters and prints them to the  *
 * 7-Segment display. A space may be used for a blank. If the string is over  *
 * 4 characters in length, only the first 4 characters will be printed,       *
 * otherwise the string will be padded to 4 characters with blanks.           */
void Write7Seg(const char * str);



#endif /*_7SEG_H_*/
